package com.cmfi.domain;

import java.time.Instant;
import java.util.Objects;

import lombok.Data;

/**
 * A ForkliftPlan.
 */
@Data
public class Warnings {

    private Long id;

    /**
     * 警告信息
     */
    private String warningMessages;

    /**
     * 警告时间
     */
    private Instant warningTime;
    
    
    /**
     * 所属产线id
     */
    private String lineId;
    
    /**
     * 所属产线名称
     */
    private String lineName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getWarningMessages() {
		return warningMessages;
	}

	public void setWarningMessages(String warningMessages) {
		this.warningMessages = warningMessages;
	}

	public Instant getWarningTime() {
		return warningTime;
	}

	public void setWarningTime(Instant warningTime) {
		this.warningTime = warningTime;
	}
	

	public String getLineId() {
		return lineId;
	}

	public void setLineId(String lineId) {
		this.lineId = lineId;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, warningMessages, warningTime);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Warnings other = (Warnings) obj;
		return Objects.equals(id, other.id) && Objects.equals(warningMessages, other.warningMessages)
				&& Objects.equals(warningTime, other.warningTime);
	}

	@Override
	public String toString() {
		return "Warnings [id=" + id + ", warningMessages=" + warningMessages + ", warningTime=" + warningTime
				+ ", getId()=" + getId() + ", getWarningMessages()=" + getWarningMessages() + ", getWarningTime()="
				+ getWarningTime() + ", hashCode()=" + hashCode() + ", getClass()=" + getClass() + ", toString()="
				+ super.toString() + "]";
	}

}
